package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(30);not null;comment:账号"`
	Password string `gorm:"type:char(32);not null;comment:密码"`
}
type Novel struct {
	gorm.Model
	UserId    int    `gorm:"type:int(11);not null;"`
	Title     string `gorm:"type:varchar(30);not null;comment:小说标题"`
	Brief     string `gorm:"type:varchar(500);not null;comment:小说简介"`
	HeadImage string `gorm:"type:varchar(500);not null;comment:小说封面"`
}
